package com.kxmall.web.controller.rider.service;

import com.kxmall.rider.domain.vo.KxRiderOrderVo;
import com.kxmall.rider.domain.vo.RiderLoginDTO;


/**
 * @description: 配送员中心
 * @author: kxmall
 * @date: 2020/02/28 11:26
 **/
public interface RiderInfoService {

    /**
     * 骑手用户名登录
     *
     * @param phone
     * @param password
     * @param ip
     * @return
     * @
     */
    public RiderLoginDTO loginRider(String phone, String password, String ip);

    /**
     * 骑手用户名修改密码
     *
     * @param oldPassword
     * @param newPassword
     * @param ip
     * @param riderId
     * @return
     * @
     */
    public RiderLoginDTO fixPass(String oldPassword,
                                 String newPassword,
                                 String ip,
                                 Long riderId);

    /**
     * 配送员开工
     *
     * @param riderId
     * @return
     * @
     */
    public String toWorking(Long riderId);


    /**
     * 配送员休息
     *
     * @param riderId
     * @return
     * @
     */
    public String toRest(Long riderId);

    /**
     * 获取配送员开工状态
     *
     * @param riderId
     * @return
     * @
     */
    public RiderLoginDTO getWorkingState(Long riderId);

    String updateAddress(KxRiderOrderVo riderOrderVo);
}
